import request from '@/utils/request'

// 查询水厂信息列表
export function listDispatchWaterPlants(query) {
  return request({
    url: '/system/dispatchWaterPlants/list',
    method: 'get',
    params: query
  })
}

// 查询水厂信息详细
export function getDispatchWaterPlants(waterPlantsId) {
  return request({
    url: '/system/dispatchWaterPlants/' + waterPlantsId,
    method: 'get'
  })
}

// 新增水厂信息
export function addDispatchWaterPlants(data) {
  return request({
    url: '/system/dispatchWaterPlants',
    method: 'post',
    data: data
  })
}

// 修改水厂信息
export function updateDispatchWaterPlants(data) {
  return request({
    url: '/system/dispatchWaterPlants',
    method: 'put',
    data: data
  })
}

// 删除水厂信息
export function delDispatchWaterPlants(waterPlantsId) {
  return request({
    url: '/system/dispatchWaterPlants/' + waterPlantsId,
    method: 'delete'
  })
}
